Add IDs to the headers generated by RST#391
Merged
gjtorikian merged 3 commits intomasterfrom Feb 15, 2015
Merged
Conversation
Contributor
|
👍 |
Contributor
Author
|
Looks like the Minitest change broke Travis: https://travis-ci.org/github/markup/jobs/40349017 |
Contributor
|
@gjtorikian this good to go? |
Contributor
Author
|
Yep, I tested against some of the repos in the original issue and this works fine. I'll open a separate PR to address the MiniTest issue. |
1c7658d to
2dea6e8
Compare
gjtorikian
added a commit
that referenced
this pull request
Feb 15, 2015
Add IDs to the headers generated by RST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #71.
In #256, we stripped out the surrounding
divs generated by RST for headers, because it padded too much whitespace and made documents look weird. Unfortunately, it looks like we also stripped out valuableidelements. I'm not sure how #71 predates the PR in #256, but in any event, we need to preserve the IDs.This PR adds those IDs back as a simple
aelement. It's actually really tough to go back into the underlying<h_>tags, so this seems like a good compromise.Note that I could not get the MiniTest suite to run on my local machine, so I changed a few parts about how it was called. I also found that the one and only RST test in the fixtures folder didn't accurately capture the problem described in #71, so I added a new file.
/cc @bkeepers